import { USER_INFO, CLEAR_USER } from '../actionsType'
const initValue = {}
export default function userInfo (state = initValue, action) {
  switch (action.type) {
    case USER_INFO:
      return action.payload
    case CLEAR_USER:
      return {}
    default:
      return state
  }
}
